package com.naiterui.ehp.bs.pharmacist.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.naiterui.ehp.bp.bo.doctor.DrDepartmentBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;

/**
 * 医生服务
 *
 * @author luao
 * @date 2021/6/21 4:12 下午
 **/
@FeignClient(name = "pharmacistDoctor", url = "${ehp.domain.ad}", configuration = FeignConfiguration.class)
public interface PharmacistDoctorFeignClient {

    @GetMapping("inner/department")
    DrDepartmentBO getDepartment(@RequestParam("name") String name);
}
